﻿$(function() {
    /*
    jQuery('.nav').accordion({
    active: true,
    header: '.head',
    navigation: true,
    active: '.selected',
    event: 'click',
    fillSpace: true,
    animated: 'easeslide'
    });
    */

    resizeWindow();
    $('.popup').popupWindow({ height: 630, width: 540, top: 100, left: 350 });
    $('.bpopup').popupWindow({ height: 700, width: 570, top: 0, left: 350, scrollbars: 1 });
    $('.spopup').popupWindow({ height: 240, width: 570, top: 200, left: 450 });
    $('.opopup').popupWindow({ height: 205, width: 460, top: 200, left: 400 });
    $('.lookuppopup').popupWindow({ height: 195, width: 440, top: 220, left: 450 });
    $('.plattpopup').popupWindow({ height: 310, width: 500, top: 200, left: 450 });
    $('.loadingpopup').popupWindow({ height: 660, width: 540, top: 100, left: 350 });
    
    
    $('.mcontent table tr:not(.gridheader,.gridpage)').mouseover(function() {
        $(this).addClass('mouseover');
    });

    $('.mcontent table tr:not(.gridheader,.gridpage)').mouseout(function() {
        $(this).removeClass('mouseover');
    });

    $("a.link").colorbox({ width: "60%", height: "63%", iframe: true });
    $("a.linkWide").colorbox({ width: "90%", height: "75%", iframe: true });
});




 function resizeWindow() 
        {
            var windowHeight = getWindowHeight();

            document.getElementById("content").style.height = (windowHeight - 110) + "px";
            document.getElementById("navigation").style.height = (windowHeight - 110) + "px";
            document.getElementById("contentPanel").style.height = (windowHeight - 160) + "px";
        }
  
        function getWindowHeight() 
        {
            var windowHeight=0;
            if (typeof(window.innerHeight)=='number') 
            {
                windowHeight = window.innerHeight;
            }
            else {
                if (document.documentElement && document.documentElement.clientHeight) 
                {
                    windowHeight = document.documentElement.clientHeight;
                }
                else 
                {
                    if (document.body && document.body.clientHeight) 
                    {
                        windowHeight = document.body.clientHeight;
                    }
                }
            }
            return windowHeight;
        }



        var track_errors=1;
function noError()
{
  if (track_errors==1)
     {
        return true;
     }
}
window.onerror = noError;